import { PageEnum } from "/@/enums/pageEnum";
import { Router } from "vue-router";
import { userStore } from "/@/store/module/UserManager";


export function createStateGuard(router: Router){
  router.beforeEach((to) => {
    if(to.path == PageEnum.BASE_LOGIN){
      userStore.clearUserInfo();
    }
  })
}
